home *** CD-ROM | disk | FTP | other *** search
- <HTML>
-
- <HEAD>
- <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css">
-
- <script language="Javascript">
- //LOCALIZATION STRINGS
- var _strNameMissing = "Please enter an event name.";
- var _strNameTooLong = "Please limit the name to 100 characters.";
- var _strEventServerMissing = "You may not create a file event without an event server.";
-
- var _strFileNameMissing = "Please enter a filename.";
-
- var _strDescTooLong = "Please limit the description to 256 characters.";
- </script>
-
- <SCRIPT language=Javascript>
- function onSubmit()
- {
- // If submitting a file event, the eventServer may not be ""
- if (document.forms.event_prop.eventServer != null)
- {
- if (document.forms.event_prop.eventServer.value == "")
- {
- alert(_strEventServerMissing);
- document.forms.event_prop.eventServer.focus();
- return;
- }
- }
-
- // Check for account name, description, and file name (for file events)
-
- // Name
- var strName = document.forms.event_prop.eventName.value;
- if (strName.length == 0)
- {
- alert(_strNameMissing);
- document.forms.event_prop.eventName.focus();
- return;
- }
- if (strName.length > 100)
- {
- alert(_strNameTooLong);
- document.forms.event_prop.eventName.focus();
- return;
- }
-
- // Filename
- if (document.forms.event_prop.fileName != null)
- {
- var strFileName = document.forms.event_prop.fileName.value;
- if (strFileName.length == 0)
- {
- alert(_strFileNameMissing);
- document.forms.event_prop.fileName.focus();
- return;
- }
- }
-
- // Description
- var strDesc = document.forms.event_prop.eventDesc.value;
- if (strDesc.length >= 256)
- {
- alert(_strDescTooLong);
- document.forms.event_prop.eventDesc.focus();
- return;
- }
-
- // Submit the properies
- document.event_prop.submit();
- }
-
- function handleTypeChange(t)
- {
- document.forms.event_prop.target = "_self";
- document.forms.event_prop.action = "%2" + "&eventType=" + t;
- document.forms.event_prop.submit();
- }
-
- function onInit()
- {
- document.forms.event_prop.eventType.selectedIndex=%3;
- document.forms.event_prop.eventType.focus();
- }
-
-
- </SCRIPT>
-
- </HEAD>
-
- <BODY onLoad="onInit()" TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5">
-
- <FORM action="%4" method="post" name="event_prop" target="target_frame">
-
- <table>
- <tr>
- <td class="list">Type:</td>
- <td class="list"><select tabindex=1 name=eventType onchange='handleTypeChange(this.options[this.selectedIndex].value)'>
- %5
- </select></td>
- </tr>
-
- <tr><td> </td></tr>
-
- <tr>
- <td class="list">Event Name:</td>
- <td class="list"><input tabindex=2 name="eventName" value="%6" size=40></td>
- </tr>
-
- <tr>
- <td class="list">Description:</td>
- <td class="list"><textarea wrap="virtual" tabindex=3 name="eventDesc" rows="7" cols="40">%7</textarea></td>
- </tr>
-
- %8
-
- </table>
-
- <BR>
-
-
- <table align=center CELLPADDING="0" CELLSPACING="5" border=0 width=20%>
- <tr>
- <td><table cellpadding=0 border=0>
- <tr>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:onSubmit()" tabindex=11>OK</a></div>
- </td>
-
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript: window.top.goEvents();" tabindex=12>Cancel</a></div>
- </td>
- </tr>
- </table></td>
- </tr>
- </table>
-
- </form>
-
- </BODY>
- </HTML>
-